<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ include file="/common/common.jsp" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"> 
  <head>
    <base href="<%=basePath%>" />
    <title>Heat Meter Data Management</title>
    <script type="text/javascript">
		var path = "<%=basePath%>";
	</script>
	<meta http-equiv="pragma" content="no-cache" />
	<meta http-equiv="cache-control" content="no-cache" />
	<meta http-equiv="expires" content="0" />    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3" />
	<meta http-equiv="description" content="This is my page" />
	<link rel="stylesheet" type="text/css" href="<%=basePath%>beshs/css/content.css" />
	<script type="text/javascript" src="<%=basePath%>resources/jquery/jquery-1.7.2.min.js"></script>
	<script type="text/javascript" src="<%=basePath%>resources/datepicker/datepicker.js"></script>
	<!-- 页面特效 -->
	<jsp:include page="/beshs/res-refer/page-effect-reference.jsp" />
	<!-- 系统通用资源 -->
	<jsp:include page="/resources/resource-refer/common-resource-reference.jsp" />
	<!-- 用户访问菜单路径 -->
	<jsp:include page="/resources/usertrace/common-uservisit-reference.jsp" />
	<!-- iframe高度自适应 -->
	<script type="text/javascript">
        function getOsName() { 
    		var OsObject = ""; 
		   	if(navigator.userAgent.indexOf("MSIE")>0) { 
		    	return "MSIE"; 
		   	} 
		   	if(isFirefox=navigator.userAgent.indexOf("Firefox")>0){ 
		        return "Firefox"; 
		   	} 
		   	if(isSafari=navigator.userAgent.indexOf("Safari")>0) { 
		        return "Safari"; 
		   	}  
		  	if(isCamino=navigator.userAgent.indexOf("Camino")>0){ 
		        return "Camino"; 
		   	} 
		   	if(isMozilla=navigator.userAgent.indexOf("Gecko/")>0){ 
		        return "Gecko"; 
		   	} 
		} 
        
        /** 根据浏览器类型选择iframe自适应方式 **/
        function setIframeHeightAutosize() {
        	//获取Iframe对象 ie和firefox都可以获得
        	var gprsIframe = document.getElementById("gprsUploadMgr"); 
        	var queryIframe = document.getElementById("customizeQueryMgr");
        	var hmd24Iframe = document.getElementById("hmd24QueryMgr");
        	try{
                if(getOsName() == 'MSIE'){
                	//上传列表
                    var lbHeight = gprsIframe.document.body.scrollHeight; //IE
                    gprsIframe.style.height =  lbHeight + "px"; 
                    //查询列表
                    var cbHeight = queryIframe.document.body.scrollHeight; //IE
                    queryIframe.style.height =  cbHeight + "px"; 
                    //24h实时列表
                    var hbHeight = hmd24Iframe.document.body.scrollHeight; //IE
                    hmd24Iframe.style.height =  hbHeight + "px"; 
                }else if(getOsName() == 'Firefox'){
                	//上传列表
                    var lfHeight = gprsIframe.contentDocument.body.scrollHeight; //FireFox 
                    gprsIframe.height = lfHeight + "px";   
                    //查询列表
                    var cfHeight = queryIframe.contentDocument.body.scrollHeight; //FireFox 
                    if(cfHeight==0){cfHeight=400;}
                    queryIframe.height = cfHeight + "px";     
                    //24h实时列表
                    var hfHeight = hmd24Iframe.contentDocument.body.scrollHeight; //FireFox 
                    if(hfHeight==0){hfHeight=400;}
                    hmd24Iframe.height = hfHeight + "px";   
                } else {
               	 	//上传列表
                    gprsIframe.style.height = 400 + "px";
                    //查询列表
                    queryIframe.style.height = 400 + "px";   
                    //24h实时列表
                    hmd24Iframe.style.height = 400 + "px"; 
                }          
            } catch (ex){}
		}
		
		$(function() {
			setIframeHeightAutosize();
		})
		
		
		
    </script>
  </head>
  <body>
  	<div class="content_all">
	  	<!--查询列表-->
  		<ul class="nav_menu"><!--选项卡开始-->
    		<li class="selected"><span>Fixed Point Upload</span></li>
    		<li><span>Custom Query</span></li>
    		<li><span>24H Real-time Data</span></li>
  		</ul>
  		<div class="nav_content">
   	 		<div class="ct">
   	 			<iframe frameborder="0" name="gprsUploadMgr" scrolling="auto" id="gprsUploadMgr" src="<%=basePath%>beshs/heatMeterDataGatherAction!queryMeterDataPage.do" height="90%" width="100%" onload="javascript:setIframeHeightAutosize()"></iframe>
   	 		</div>
    		<div class="ct">
    			<iframe frameborder="0" name="customizeQueryMgr" scrolling="auto" id="customizeQueryMgr" src="<%=basePath%>beshs/heatMeterDataGatherAction!queryCustomizedHmDataPage.do" height="90%" width="100%"></iframe>
    		</div>
    		<div class="ct">
    			<iframe frameborder="0" name="hmd24QueryMgr" scrolling="auto" id="hmd24QueryMgr" src="<%=basePath%>interfaces/heatMeterData24GatherAction!queryMeterDataRealtimeStatisPage.do" height="90%" width="100%"></iframe>
    		</div>
  		</div><!--选项卡结束-->
	</div>
  </body>
</html>
